package com.bing.scheduling;

import java.util.Date;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 调度器
 *
 * @author 毛尚俊
 * @create 2017-10-14 14:12
 */
@Component
public class AppCoreTask {

  @Scheduled(cron = "0 0/1 * * * ? ")
  public void tesk() {
    System.out.print("执行定时任务" + new Date());
  }
}

